package cn.hallele.ms.portalcenter.domain.action.datadict;

import cn.hallele.infrastructure.metadata.io.Page;
import cn.hallele.ms.portalcenter.domain.das.DataDictTypeDDDas;
import cn.hallele.ms.portalcenter.domain.domain.DataDictTypeDomain;
import cn.hallele.ms.portalcenter.domain.domain.DataDictTypeQueryDomain;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * hallele_ms_portalcenter
 *
 * @author anle5
 * @since 2025/3/9 17:10
 */
@Slf4j
@Service
public class DataDictTypeDomainService {
    @Autowired
    private DataDictTypeDDDas dataDictTypeDDDas;

    /**
     * 获取 数据字典列表
     *
     * @param condition 查询条件
     * @return Page
     */
    public Page<DataDictTypeDomain> getDataDictTypes(DataDictTypeQueryDomain condition) {
        return dataDictTypeDDDas.findAll(condition);
    }
}
